from typing import Annotated

from pydantic import BaseModel


class Agent(BaseModel):
    name: str
    instructions : str
    tools : list = None

def place_order(item_name:Annotated[str,"商品名称"]):
    """下订单"""
    print('下订单')
    return "order successfully"

def execute_refund(item_name:Annotated[str,"商品名称"]):
    """执行退款"""
    return "refund successfully"

sales_assistant = Agent(
    name = "Sales Assistant",
    instructions = "你负责销售",
    tools=[place_order]
)

refund_assistant = Agent(
    name = "Refund Assistant",
    instructions = '你负责退款',
    tools=[execute_refund]
)